using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class XResComp : MonoBehaviour
{
    public void Destroy()
    {
        if (!XRes.ReleaseInstance(gameObject))
            Destroy(gameObject);
    }

    public static void SendMsgDestory(GameObject vGameObject)
    {
        vGameObject.SendMessage("Destroy");
    }
}
